<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>vue2.x</title>
</head>

<body>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/axios@0.12.0/dist/axios.min.js"></script>

    <div id="app">
        <div>{{info.name}}</div>
    </div>
    <script>
        var app = new Vue({
            el: '#app',
            data() {
                return {
                    info: {
                        name: '',
                        url: '',
                    }
                }
            },
            mounted() {
                axios.get('data.json')
                    .then(response => this.info = response.data)
                    .catch(function (error) {
							vm.answer = 'Error! Could not reach the API. ' + error
						})
            }
        })
    </script>
</body>

</html>